<!DOCTYPE html>
<html>
<head>
    <#include "../../common/head.ftl">
    <script type="text/javascript">
    function delfunc(obj){
    	layer.confirm('确认删除？', {
    		  btn: ['确定','取消'] //按钮
    		}, function(){
   				$.ajax({
   					type : 'post',
   					url : $(obj).attr('data-url'),
   					data : {act:'del',del_id:$(obj).attr('data-id')},
   					dataType : 'json',
   					success : function(data){
   						if(data==1){
   							layer.msg('操作成功', {icon: 1});
   							$(obj).parent().parent().remove();
   						}else{
   							layer.msg(data, {icon: 2,time: 2000});
   						}
   						layer.closeAll();
   					}
   				})
    		}, function(index){
    			layer.close(index);
    			return false;// 取消
    		}
    	);
    }
    
    //全选
    function selectAll(name,obj){
    	$('input[name*='+name+']').prop('checked', $(obj).checked);
    }   
    
    function get_help(obj){
        layer.open({
            type: 2,
            title: '帮助手册',
            shadeClose: true,
            shade: 0.3,
            area: ['90%', '90%'],
            content: $(obj).attr('data-url'), 
        });
    }
    
    function delAll(obj,name){
    	var a = [];
    	$('input[name*='+name+']').each(function(i,o){
    		if($(o).is(':checked')){
    			a.push($(o).val());
    		}
    	})
    	if(a.length == 0){
    		layer.alert('请选择删除项', {icon: 2});
    		return;
    	}
    	layer.confirm('确认删除？', {btn: ['确定','取消'] }, function(){
    			$.ajax({
    				type : 'get',
    				url : $(obj).attr('data-url'),
    				data : {act:'del',del_id:a},
    				dataType : 'json',
    				success : function(data){
    					if(data == 1){
    						layer.msg('操作成功', {icon: 1});
    						$('input[name*='+name+']').each(function(i,o){
    							if($(o).is(':checked')){
    								$(o).parent().parent().remove();
    							}
    						})
    					}else{
    						layer.msg(data, {icon: 2,time: 2000});
    					}
    					layer.closeAll();
    				}
    			})
    		}, function(index){
    			layer.close(index);
    			return false;// 取消
    		}
    	);	
    }
    </script>        
  <meta name="__hash__" content="a16d53ddb886662ff230fa561f6608d2_df33e8cb26a16c1e663a7eff373e64db"></head>
  <body style="background-color:#ecf0f5;">
 

<div class="wrapper">
    <div class="breadcrumbs" id="breadcrumbs">
	<ol class="breadcrumb">
	<li><a href="javascript:void();"><i class="fa fa-home"></i>&nbsp;&nbsp;后台首页</a></li>
	        
	        <li><a href="javascript:void();">评论管理</a></li>    
	        <li><a href="javascript:void();">评论列表</a></li>          
	</ol>
</div>

    <section class="content">
        <div class="row">
           <div class="col-xs-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                    	<i class="fa fa-list"></i>&nbsp;评论列表
                    </h3>
                </div>
                <div class="panel-body">
                <nav class="navbar navbar-default">	     
			        <div class="collapse navbar-collapse">
			          <form action="/index/Admin/Comment/index" id="search-form2" class="navbar-form form-inline" role="search" method="post">
			            <div class="form-group">
			              	<input class="form-control" name="content" placeholder="搜索评论内容" type="text">
			            </div>
                          <div class="form-group">
                              <input class="form-control" name="nickname" placeholder="搜索用户" type="text">
                          </div>
                          <button type="button" onclick="ajax_get_table('search-form2',1)" class="btn btn-info"><i class="fa fa-search"></i> 筛选</button>
			          <input name="__hash__" value="a16d53ddb886662ff230fa561f6608d2_df33e8cb26a16c1e663a7eff373e64db" type="hidden"></form>		
			      </div>
    			</nav>
                    <div id="ajax_return"><div class="table-responsive">
    <table class="table table-bordered table-hover">
        <thead>
        <tr>
            <td style="width: 1px;" class="text-center">
                <input onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" type="checkbox">
            </td>
            <td class="text-center">
                用户
            </td>
            <td class="text-center">
                评论内容
            </td>
            <td class="text-center">
                商品
            </td>
            <td class="text-center">
                显示
            </td>
            <td class="text-center">
                评论时间
            </td>
            <td class="text-center">
                ip地址
            </td>
            <td class="text-center">操作</td>
        </tr>
        </thead>
        <tbody>

        <tr>
                <td class="text-center">
                    <input name="selected[]" value="328" type="checkbox">
                </td>
                <td class="text-center">hello</td>
                <td class="text-left">45453678323.7582</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/1">Apple iPhone 6s Plus 16G 玫瑰金 移动联通电信4G手机</a></td>
                <td class="text-center">
                    <img src="../Public/images/cancel.png" onclick="changeTableVal('comment','comment_id','328','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-10-13 10:47:44</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="商品评论-评论查看回复.html" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/328" onclick="del('328',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="327" type="checkbox">
                </td>
                <td class="text-center">hello</td>
                <td class="text-left">dasdasdasd</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                <td class="text-center">
                    <img src="../Public/images/cancel.png" onclick="changeTableVal('comment','comment_id','327','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-10-13 10:45:35</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/327" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/327" onclick="del('327',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="326" type="checkbox">
                </td>
                <td class="text-center">hello</td>
                <td class="text-left"></td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/104">小米手机5,十余项黑科技，很轻狠快</a></td>
                <td class="text-center">
                    <img src="../Public/images/cancel.png" onclick="changeTableVal('comment','comment_id','326','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-09-23 09:59:30</td>
                <td class="text-center">192.168.0.101</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/326" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/326" onclick="del('326',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="325" type="checkbox">
                </td>
                <td class="text-center">hello</td>
                <td class="text-left"></td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/119">小米旗舰店正品手机平板通用迷你充电宝 移动电源10000毫安大容量</a></td>
                <td class="text-center">
                    <img src="../Public/images/cancel.png" onclick="changeTableVal('comment','comment_id','325','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-09-22 17:48:51</td>
                <td class="text-center">192.168.0.103</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/325" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/325" onclick="del('325',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="324" type="checkbox">
                </td>
                <td class="text-center">hello</td>
                <td class="text-left"></td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/119">小米旗舰店正品手机平板通用迷你充电宝 移动电源10000毫安大容量</a></td>
                <td class="text-center">
                    <img src="../Public/images/cancel.png" onclick="changeTableVal('comment','comment_id','324','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-09-22 17:45:25</td>
                <td class="text-center">192.168.0.103</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/324" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/324" onclick="del('324',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="319" type="checkbox">
                </td>
                <td class="text-center">淑女</td>
                <td class="text-left">买回来用了一段时间, 真心感觉不错  ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/140">Apple iPhone 6s 16GB 玫瑰金色 移动联通电信4G手机</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','319','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:13:13</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/319" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/319" onclick="del('319',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="320" type="checkbox">
                </td>
                <td class="text-center">淑女</td>
                <td class="text-left">买回来用了一段时间, 真心感觉不错  ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/141">三星 Galaxy A9高配版 (A9100) 精灵黑 全网通4G手机 双卡双待</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','320','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:13:13</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/320" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/320" onclick="del('320',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="321" type="checkbox">
                </td>
                <td class="text-center">淑女</td>
                <td class="text-left">买回来用了一段时间, 真心感觉不错  ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/142">海尔（Haier）BCD-251WDGW 251升 无霜两门冰箱（白色）</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','321','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:13:13</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/321" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/321" onclick="del('321',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="322" type="checkbox">
                </td>
                <td class="text-center">淑女</td>
                <td class="text-left">买回来用了一段时间, 真心感觉不错  ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/143">haier海尔 BC-93TMPF 93升单门冰箱</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','322','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:13:13</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/322" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/322" onclick="del('322',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="315" type="checkbox">
                </td>
                <td class="text-center">貌美如花</td>
                <td class="text-left">第二次光顾了, 不错 ,不错 ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/140">Apple iPhone 6s 16GB 玫瑰金色 移动联通电信4G手机</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','315','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:12:29</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/315" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/315" onclick="del('315',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="316" type="checkbox">
                </td>
                <td class="text-center">貌美如花</td>
                <td class="text-left">第二次光顾了, 不错 ,不错 ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/141">三星 Galaxy A9高配版 (A9100) 精灵黑 全网通4G手机 双卡双待</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','316','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:12:29</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/316" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/316" onclick="del('316',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="317" type="checkbox">
                </td>
                <td class="text-center">貌美如花</td>
                <td class="text-left">第二次光顾了, 不错 ,不错 ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/142">海尔（Haier）BCD-251WDGW 251升 无霜两门冰箱（白色）</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','317','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:12:29</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/317" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/317" onclick="del('317',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="318" type="checkbox">
                </td>
                <td class="text-center">貌美如花</td>
                <td class="text-left">第二次光顾了, 不错 ,不错 ....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/143">haier海尔 BC-93TMPF 93升单门冰箱</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','318','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:12:29</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/318" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/318" onclick="del('318',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="311" type="checkbox">
                </td>
                <td class="text-center">貌美如花</td>
                <td class="text-left">买来送给我老公的, 嘻嘻....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/140">Apple iPhone 6s 16GB 玫瑰金色 移动联通电信4G手机</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','311','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:11:33</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/311" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/311" onclick="del('311',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="312" type="checkbox">
                </td>
                <td class="text-center">貌美如花</td>
                <td class="text-left">买来送给我老公的, 嘻嘻....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/141">三星 Galaxy A9高配版 (A9100) 精灵黑 全网通4G手机 双卡双待</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','312','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:11:33</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/312" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/312" onclick="del('312',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr><tr>
                <td class="text-center">
                    <input name="selected[]" value="313" type="checkbox">
                </td>
                <td class="text-center">貌美如花</td>
                <td class="text-left">买来送给我老公的, 嘻嘻....</td>
                <td class="text-left"><a target="_blank" href="/index/Home/Goods/goodsInfo/id/142">海尔（Haier）BCD-251WDGW 251升 无霜两门冰箱（白色）</a></td>
                <td class="text-center">
                    <img src="../Public/images/yes.png" onclick="changeTableVal('comment','comment_id','313','is_show',this)" width="20" height="20">
                </td>
                <td class="text-center">2016-04-22 14:11:33</td>
                <td class="text-center">127.0.0.1</td>

                <td class="text-center">
                    <a href="/index/Admin/comment/detail/id/313" data-toggle="tooltip" title="" class="btn btn-primary" data-original-title="编辑"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void(0);" data-href="/index/Admin/comment/del/id/313" onclick="del('313',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr>
        </tbody>
    </table>
    <select name="operate" id="operate">
        <option value="0">操作选择</option>
        <option value="show">显示</option>
        <option value="hide">隐藏</option>
        <option value="del">删除</option>
    </select>
    <button onclick="op()">确定</button>
    <form id="op" action="/index/Admin/Comment/op" method="post">
        <input name="selected" type="hidden">
        <input name="type" type="hidden">
    <input name="__hash__" value="a4ed4782cb6582631410a9c0b31f822c_a522c44672ac289a627afb4118b84f04" type="hidden"></form>
</div>
<div class="row">
    <div class="col-sm-6 text-left"></div>
    <div class="col-sm-6 text-right"><div class="dataTables_paginate paging_simple_numbers"><ul class="pagination">  <li class="paginate_button active"><a tabindex="0" data-dt-idx="1" aria-controls="example1" data-p="1" href="javascript:void(0)">1</a></li><li class="paginate_button"><a class="num" data-p="2" href="javascript:void(0)">2</a></li><li class="paginate_button"><a class="num" data-p="3" href="javascript:void(0)">3</a></li><li class="paginate_button"><a class="num" data-p="4" href="javascript:void(0)">4</a></li><li class="paginate_button"><a class="num" data-p="5" href="javascript:void(0)">5</a></li><li class="paginate_button"><a class="num" data-p="6" href="javascript:void(0)">6</a></li><li class="paginate_button"><a class="num" data-p="7" href="javascript:void(0)">7</a></li><li class="paginate_button"><a class="num" data-p="8" href="javascript:void(0)">8</a></li><li class="paginate_button"><a class="num" data-p="9" href="javascript:void(0)">9</a></li><li class="paginate_button"><a class="num" data-p="10" href="javascript:void(0)">10</a></li><li class="paginate_button"><a class="num" data-p="11" href="javascript:void(0)">11</a></li> <li id="example1_next" class="paginate_button next"><a class="next" data-p="2" href="javascript:void(0)">下一页</a></li> <li id="example1_previous" class="paginate_button previous disabled"><a class="end" data-p="21" href="javascript:void(0)">尾页</a></li></ul></div></div>
</div>
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
</script></div>
                </div>
            </div>
           </div>
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>
    // 删除操作
    function del(id,t)
    {
        if(!confirm('确定要删除吗?'))
            return false;
        location.href = $(t).data('href');
    }

    function op(){
        //获取操作
        var op_type = $('#operate').find('option:selected').val();
        if(op_type == 0){
			layer.msg('请选择操作', {icon: 1,time: 1000});   //alert('请选择操作');
            return;
        }
        //获取选择的id
        var selected = $('input[name*="selected"]:checked');
        var selected_id = [];
        if(selected.length < 1){

			layer.msg('请选择项目', {icon: 1,time: 1000}); //            alert('请选择项目');
            return;
        }
        $(selected).each(function(){
            selected_id.push($(this).val());
        })
        $('#op').find('input[name="selected"]').val(selected_id);
        $('#op').find('input[name="type"]').val(op_type);
        $('#op').submit();
    }

    $(document).ready(function(){
        ajax_get_table('search-form2',1);
    });


    // ajax 抓取页面
    function ajax_get_table(tab,page){
        cur_page = page; //当前页面 保存为全局变量
        $.ajax({
            type : "POST",
            url:"/index/Admin/Comment/ajaxindex/p/"+page,//+tab,
            data : $('#'+tab).serialize(),// 你的formid
            success: function(data){
                $("#ajax_return").html('');
                $("#ajax_return").append(data);
            }
        });
    }

</script>


</body></html>